<template>
  <el-card style="width: 25%">
    <template #header>
      <div class="card-header">
        <p class="text">{{ option.text }}</p>
        <p class="subtext weight">{{ option.num1 }}</p>
        <div style="width: 279px; height: 50px">
          <slot></slot>
        </div>
      </div>
    </template>
    <p>
      {{ option.subtext }}&nbsp;<span class="weight">{{ option.num2 }}</span
      ><slot name="span"></slot>
    </p>
  </el-card>
</template>

<script>
export default {
  props: {
    option: {
      type: Object,
      required: true,
    },
  },
};
</script>

<style lang="scss" scoped>
.card-header {
  .text {
    font-size: 12px;
    color: #777;
    letter-spacing: 1px;
  }
  .subtext {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
  }
}
.weight {
  font-weight: 550;
}
</style>
